﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="NLBS.Entity" assembly="NLBS.Entity">
  <class name="Comment" table="blog_Comment">
    <id name="CommentID" column="comm_id" type="Int32">
      <generator class="native" />
    </id>
    <property name="LogID" column="log_id"  type="Int32" />
    <property name="Content" column="comm_content" />
    <property name="AuthorID" column="comm_authorID" type="Int32" />
    <property name="Author" column="comm_author" type="String" />
    <property name="EditMark" column="comm_editMark" type="String" />
    <property name="Hidden" column="comm_hidden" type="Boolean" />
    <property name="UbbFlags" column="comm_ubbFlags"  type="String"/>
    <property name="PostTime" column="comm_postTime" type="DateTime" />
    <property name="IP" column="comm_ip" />

    <many-to-one name="Article" class="Article"
             not-found="ignore" column="log_id"/>
  </class>
</hibernate-mapping>